package com.xdjd.task.job;

import com.xdjd.task.service.InitClockService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@JobHandler(value = "initClockJob")//凌晨零点执行
@Component
public class InitClockJob extends IJobHandler {

    @Autowired
    private InitClockService initClockService;

    @Override
    public ReturnT<String> execute(String s) {
        initClockService.initClockDetail();
        return SUCCESS;
    }
}
